// main.qml
import QtQuick 2.15
import QtQuick.Window 2.15

Window {
    width: 800
    height: 1200
    visible: true
    title: "Qt for 鸿蒙"

    Rectangle {
        anchors.fill: parent
        color: "lightblue"

        Text {
            id: myText
            text: "你好，Qt for 鸿蒙"
            font.pixelSize: 80
            color: "darkblue"
            anchors.centerIn: parent
        }

        MouseArea {
            anchors.fill: parent
            onClicked: {
                myText.text = "坚果派"
            }
        }
    }
}